# coding=utf-8
# !/usr/bin/python3
# @Time:2021/2/20 3:45 下午
# @Author:wangyun
# @File:urls.py

from django.conf.urls import url
from . import views

urlpatterns = [
    # users
    # reverse(users:register) == '/register/'
    url(r'^register/$', views.RegisterView.as_view(), name='register'),
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    url(r'^logout/$', views.LoginOutView.as_view(), name='logout'),
    url(r'^user_center_info/$',views.UserCenterInfoView.as_view(),name='user_center'),
    url(r'^emails/$',views.EmailView.as_view()),
    url(r'^emails/verification/$',views.VerifyEmailView.as_view()),
    url(r'usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$', views.UsernameCountView.as_view()),
    url(r'mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobilesCountView.as_view()),
    url(r'^addresses/$', views.AddressView.as_view(), name='addresses'),

    # r'^1[3-9]\d{9}$'
    # url(r'^register1/$', myregister, name='register1'),
]
